/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jili.ubert.code.client2server;

import com.baidu.bjf.remoting.protobuf.Codec;
import com.baidu.bjf.remoting.protobuf.ProtobufProxy;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import java.io.IOException;

/**
 *
 * @author ChengJili
 */
public class ReSetPassWord {
    @Protobuf
    private String id;
    @Protobuf
    private String passWord;
    
    public ReSetPassWord(){}
    public ReSetPassWord(String id,String passWord){
        this.id=id;
        this.passWord=passWord;
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the passWord
     */
    public String getPassWord() {
        return passWord;
    }

    /**
     * @param passWord the passWord to set
     */
    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }
    public byte[] EnCode(ReSetPassWord msg) throws IOException{
        Codec<ReSetPassWord> Lcode = ProtobufProxy.create(ReSetPassWord.class);
        return Lcode.encode(msg);
    }
    public ReSetPassWord DeCode(byte[] data) throws IOException{
        Codec<ReSetPassWord> Lcode = ProtobufProxy.create(ReSetPassWord.class);
        return Lcode.decode(data);
        
    }
}
